﻿
namespace GuidanceExplorer.Model.Conditions
{
    class NotGenericMenuItemCondition<T> : IMenuItemCondition
        where T : IMenuItemCondition, new()
    {
        public bool ShowMenuItem(MenuItemAttribute attribute, IModelItem modelItem)
        {
            return !new T().ShowMenuItem(attribute, modelItem);
        }
    }

}
